Agent mining